package mobile.game.core.gen.proxy;

import mobile.game.core.support.Param;
import mobile.game.core.support.function.JowFunction2;
import mobile.game.core.support.function.JowFunction3;

/**
 * @author gzoro
 *
 * RPC代理类的基类
 */
public abstract class RPCProxyBase {
	/**
	 * 异步注册监听RPC返回
	 * @param method
	 * @param context
	 */
	public abstract void listenResult(JowFunction2<Param, Param> method, Object...context);
	public abstract void listenResult(JowFunction3<Boolean, Param, Param> method, Object...context);
	
	/**
	 * 同步等待RPC返回
	 * @return
	 */
	public abstract Param waitForResult();
}
